.class Ladapter/FramentOrder11111$GoodsAdapter$2;
.super Ljava/lang/Object;
.source "FramentOrder11111.java"

# interfaces
.implements Landroid/view/View$OnClickListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Ladapter/FramentOrder11111$GoodsAdapter;->getView(ILandroid/view/View;Landroid/view/ViewGroup;)Landroid/view/View;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$1:Ladapter/FramentOrder11111$GoodsAdapter;

.field private final synthetic val$holder:Ladapter/FramentOrder11111$MyHolder;


# direct methods
.method constructor <init>(Ladapter/FramentOrder11111$GoodsAdapter;Ladapter/FramentOrder11111$MyHolder;)V
    .locals 0

    .prologue
    .line 1
    iput-object p1, p0, Ladapter/FramentOrder11111$GoodsAdapter$2;->this$1:Ladapter/FramentOrder11111$GoodsAdapter;

    iput-object p2, p0, Ladapter/FramentOrder11111$GoodsAdapter$2;->val$holder:Ladapter/FramentOrder11111$MyHolder;

    .line 1218
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onClick(Landroid/view/View;)V
    .locals 7
    .param p1, "arg0"    # Landroid/view/View;

    .prologue
    const/16 v6, 0x8

    .line 1224
    invoke-virtual {p1}, Landroid/view/View;->getId()I

    move-result v0

    .line 1225
    .local v0, "index":I
    iget-object v3, p0, Ladapter/FramentOrder11111$GoodsAdapter$2;->this$1:Ladapter/FramentOrder11111$GoodsAdapter;

    # getter for: Ladapter/FramentOrder11111$GoodsAdapter;->this$0:Ladapter/FramentOrder11111;
    invoke-static {v3}, Ladapter/FramentOrder11111$GoodsAdapter;->access$0(Ladapter/FramentOrder11111$GoodsAdapter;)Ladapter/FramentOrder11111;

    move-result-object v3

    invoke-virtual {v3, v0}, Ladapter/FramentOrder11111;->delcart(I)V

    .line 1227
    iget-object v3, p0, Ladapter/FramentOrder11111$GoodsAdapter$2;->this$1:Ladapter/FramentOrder11111$GoodsAdapter;

    # getter for: Ladapter/FramentOrder11111$GoodsAdapter;->this$0:Ladapter/FramentOrder11111;
    invoke-static {v3}, Ladapter/FramentOrder11111$GoodsAdapter;->access$0(Ladapter/FramentOrder11111$GoodsAdapter;)Ladapter/FramentOrder11111;

    move-result-object v4

    iget-object v3, p0, Ladapter/FramentOrder11111$GoodsAdapter$2;->this$1:Ladapter/FramentOrder11111$GoodsAdapter;

    # getter for: Ladapter/FramentOrder11111$GoodsAdapter;->this$0:Ladapter/FramentOrder11111;
    invoke-static {v3}, Ladapter/FramentOrder11111$GoodsAdapter;->access$0(Ladapter/FramentOrder11111$GoodsAdapter;)Ladapter/FramentOrder11111;

    move-result-object v3

    # getter for: Ladapter/FramentOrder11111;->beans2:Ljava/util/ArrayList;
    invoke-static {v3}, Ladapter/FramentOrder11111;->access$1(Ladapter/FramentOrder11111;)Ljava/util/ArrayList;

    move-result-object v3

    invoke-virtual {v3, v0}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v3

    check-cast v3, Lcom/example/m6shop/GoodsBean2;

    invoke-virtual {v3}, Lcom/example/m6shop/GoodsBean2;->getId()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v4, v3}, Ladapter/FramentOrder11111;->search(Ljava/lang/String;)I

    move-result v2

    .line 1228
    .local v2, "mum":I
    iget-object v3, p0, Ladapter/FramentOrder11111$GoodsAdapter$2;->val$holder:Ladapter/FramentOrder11111$MyHolder;

    iget-object v3, v3, Ladapter/FramentOrder11111$MyHolder;->tv_goodscountss:Landroid/widget/TextView;

    new-instance v4, Ljava/lang/StringBuilder;

    invoke-static {v2}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;

    move-result-object v5

    invoke-direct {v4, v5}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v3, v4}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 1229
    if-nez v2, :cond_0

    .line 1231
    iget-object v3, p0, Ladapter/FramentOrder11111$GoodsAdapter$2;->val$holder:Ladapter/FramentOrder11111$MyHolder;

    iget-object v3, v3, Ladapter/FramentOrder11111$MyHolder;->tv_goodprice:Landroid/widget/TextView;

    const/4 v4, 0x0

    invoke-virtual {v3, v4}, Landroid/widget/TextView;->setVisibility(I)V

    .line 1234
    iget-object v3, p0, Ladapter/FramentOrder11111$GoodsAdapter$2;->val$holder:Ladapter/FramentOrder11111$MyHolder;

    iget-object v3, v3, Ladapter/FramentOrder11111$MyHolder;->tv_goodscountss:Landroid/widget/TextView;

    invoke-virtual {v3, v6}, Landroid/widget/TextView;->setVisibility(I)V

    .line 1235
    iget-object v3, p0, Ladapter/FramentOrder11111$GoodsAdapter$2;->val$holder:Ladapter/FramentOrder11111$MyHolder;

    iget-object v3, v3, Ladapter/FramentOrder11111$MyHolder;->chain_delgdbtn:Landroid/widget/ImageView;

    invoke-virtual {v3, v6}, Landroid/widget/ImageView;->setVisibility(I)V

    .line 1238
    :cond_0
    new-instance v1, Landroid/os/Message;

    invoke-direct {v1}, Landroid/os/Message;-><init>()V

    .line 1239
    .local v1, "message":Landroid/os/Message;
    const/4 v3, 0x3

    iput v3, v1, Landroid/os/Message;->arg1:I

    .line 1240
    iput v0, v1, Landroid/os/Message;->arg2:I

    .line 1242
    sget-object v3, Ladapter/FramentOrder11111;->handler:Landroid/os/Handler;

    invoke-virtual {v3, v1}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z

    .line 1244
    return-void
.end method
